﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LTSMZ.life.Model;
using LTSMZ.life.BLL;


namespace LTSMZ.life.UI.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Product/
        ProductBll bll = new ProductBll();
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Show()
        {
            return Json(bll.Show1(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowShucai()
        {
            return Json(bll.ShowShucai(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult Showshuichan()
        {
            return Json(bll.Showshuichan(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult GetFirsTypeName(string name)
        {
            return Json(bll.GetFirsTypeNameProduct(name), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowBaoKuan()
        {
            return Json(bll.ShowBaoKuan(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowRou()
        {
            return Json(bll.ShowRou(),JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowShui()
        {
            return Json(bll.ShowShui(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowChu()
        {
            return Json(bll.ShowChu(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowJia()
        {
            return Json(bll.ShowJia(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult GetProductId(int id)
        {
            return Json(bll.GetProductId(id), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowRou2()
        {
            return Json(bll.ShowRou2(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowShui2()
        {
            return Json(bll.ShowShui2(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult ShowbaokuanT()
        {
            return Json(bll.ShowbaokuanT(), JsonRequestBehavior.AllowGet);
        }
    }
}
